package com.beverages.individual.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beverages.individual.entity.Individual;
import com.beverages.individual.entity.dto.IndividualPasswordDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface IndividualMapper extends BaseMapper<Individual> {
    @Update("update user set password = #{newPassword} where username = #{username} and password = #{password}")
    int updatePassword(IndividualPasswordDTO individualPasswordDTO);
}
